home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / gus / gus0039.zip / SBOS.BAT < prev    next >
DOS Batch File  |  1994-02-11  |  2KB  |  48 lines

  1. @ECHO OFF
  2. REM ----
  3. REM  Name:    SBOS Batch File
  4. REM  Tested:  01/06/94 - JRS
  5. REM  Purpose: Check for the users ULTRADIR enviro variable. If found then
  6. REM           use this to find SBOS. This is more reliable then using
  7. REM           the path to locate these files.
  8. REM  Revised: 02/07/94 - Force SBOSDRV.COM so it will not conflict with EXE
  9. REM           02/11/94 - Only force SBOSDRV.COM if it exist. Otherwise load
  10. REM                      SBOSDRV.EXE
  11. REM ---
  12. if %ultradir%!==! GOTO NOULTRADIR
  13. REM ---
  14. REM   Check to see if we are to load SBOSDRV.COM or SBOSDRV.EXE
  15. REM ---
  16. if exist %ultradir%\sbosdrv.com %ultradir%\sbosdrv.com
  17. if exist %ultradir%\sbosdrv.com GOTO LOADSBOS
  18. if exist %ultradir%\sbosdrv.exe %ultradir%\sbosdrv.exe
  19. if exist %ultradir%\sbosdrv.exe GOTO LOADSBOS
  20. ECHO Unable to locate SBOS file(s) - (SBOSDRV). Make sure you are running
  21. ECHO SBOS from the same directory you installed the UltraSound software.
  22. GOTO EXIT
  23.  
  24. :NOULTRADIR
  25. if exist sbosdrv.com sbosdrv.com
  26. if exist sbosdrv.com GOTO NLOADSBOS
  27. if exist sbosdrv.exe sbosdrv.exe
  28. if exist sbosdrv.exe GOTO NLOADSBOS
  29. ECHO Unable to locate SBOS file(s) - (SBOSDRV). Make sure you are running
  30. ECHO SBOS from the same directory you installed the UltraSound software.
  31. GOTO EXIT
  32.  
  33. :LOADSBOS
  34. if exist %ultradir%\loadsbos.* %ultradir%\loadsbos %1 %2 %3 %4
  35. if exist %ultradir%\loadsbos.* GOTO EXIT
  36. ECHO Unable to locate SBOS file(s) - (LOADSBOS). Make sure you are running
  37. ECHO SBOS from the same directory you installed the UltraSound software.
  38. GOTO EXIT
  39.  
  40. :NLOADSBOS
  41. if exist loadsbos.* loadsbos %1 %2 %3 %4
  42. if exist loadsbos.* GOTO EXIT
  43. ECHO Unable to locate SBOS file(s) - (LOADSBOS). Make sure you are running
  44. ECHO SBOS from the same directory you installed the UltraSound software.
  45. GOTO EXIT
  46.  
  47. :EXIT
  48.